// object.assign方法
const target = {a:1}
const source1 = {b:2}
const source2 = {c:3}
Object.assign(target, source1,source2)
console.log(target) // { a: 1, b: 2, c: 3 }

const v1 = 'abc';
const v2 = true;
const v3 = 10;

const obj = Object.assign({}, v1, v2, v3);
console.log(obj); // { "0": "a", "1": "b", "2": "c" }